﻿using Notifications.Wpf.Annotations;
using SqlSugar.Extensions;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace AncheStart.Converter
{
    /// <summary>
    /// 工步序号
    /// </summary>
    public class CurrentWorkStepNoConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            //当前行的序号
            bool isCompeleted = value.ObjToBool();

            //下位机上传的执行中的序号
            //int midIndex =
            return isCompeleted ? "Green" : "Transparent";
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return null;
        }
    }
}